-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[C64] Fix memory performance issues #4152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What part of this is using ArrayPool
? If you scrapped all of this and simply swapped out allocations for ArrayPool
, how effective would that be?
src/BizHawk.Emulation.Cores/Computers/Commodore64/Cartridge/Mapper0020.cs
Outdated
Show resolved
Hide resolved
src/BizHawk.Emulation.Cores/Computers/Commodore64/Serial/Drive1541.cs
Outdated
Show resolved
Hide resolved
src/BizHawk.Emulation.Cores/Computers/Commodore64/Media/Disk.cs
Outdated
Show resolved
Hide resolved
Thanks for the feedback. Having stepped away and come back to it, I think the scope of these changes is larger than it needs to be. I'm going to put in refinements this week. |
5f26c3b
to
ff92bdd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebase again and I think this is good. And please update the OP, including your estimate for the performance boost.
Performance results added. The results are similar across all tested disks- I just used one as an example. |
Do you need help with rebasing? I was expecting
Nice charts BTW. |
453ddcb
to
0a21372
Compare
Did you intend to do something like this? (On that branch I've also made a few code style fixes, to save having to leave more review comments.) |
Yeah, I think some of the branch history got a bit muddled. That looks fine to me. For posterity, the commit list should look more like this: https://github.com/SaxxonPike/BizHawk/tree/disk-delta-fixes-merge |
Would you like to force-push that here then? |
0a21372
to
6c9aac6
Compare
@YoshiRulz Thank you for taking care of this. |
Addresses #4151
Causes:
Solutions:
Practical tests run:
Before changes, using Remember's release of "Uridium":
After changes, using the same disk:
Check if completed: